
package jfireeagle.examples.swing;

import javax.swing.*;

import jfireeagle.Address;
import jfireeagle.CellTower;
import jfireeagle.FireEagleClient;
import jfireeagle.GpsCoordinate;
import jfireeagle.LocationParameters;

public class UpdateLocationForm extends AbstractForm
{
	private LocationParametersPanel locPanel = new LocationParametersPanel();
	
	public UpdateLocationForm(FireEagleClient c)
	{
		super(c, 1);
		
		add(locPanel);
		
	}
	
	public Object onSubmit()
	{
		LocationParameters loc = locPanel.getLocationParameters();
		
		this.getClient().updateLocation(loc);
		
		return null;
	}


}
